/**
 * ...
 * @author Thot
 */

function AddLayerCommand(){}; 
POO.extend( AddLayerCommand, Command );



AddLayerCommand.prototype.execute = function( p_notificationType, p_data )
{
	var facade = ApplicationFacade.getInstance();
	
	var appProxy = facade.getProxy( ApplicationProxy.NAME );
	var mapProxy = facade.getProxy( MapProxy.NAME );
	var currentMap = appProxy.currentMap;
	var vo = mapProxy.getMapVOById( currentMap );
	
	var layerVO = new LayerVO();
	layerVO.name = p_data;
	vo.layers.push( layerVO );
};